﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MN.Framework.Common.Security
{
    public class SqlAuthenticarion : IAuthentication
    {
        public bool ValidateUser(string username, string password)
        {
            IMembership member = new SqlMembership();
            if (member.validateUser(username, password))
            {
                var user = member.getUser(username);
                return true;
            }
            return false;
        }
    }
}
